package VUTHANHPHUC_HOMEWORK_OOP_LV2;



public class RectangleViews {
	public static void main(String[] args) {
		Rectangle objC1 = new Rectangle(4, 40);
		Rectangle objC2 = new Rectangle(3.5, 39.5);
		String color;
		objC1.setColor("red");
		objC2.setColor("red");
		RectangleControllers rec = new RectangleControllers(objC1);
		RectangleControllers rec1 = new RectangleControllers(objC2);
		System.out.println(""+rec.Area(objC1));
		System.out.println(""+rec.Perimeter(objC1));
		System.out.println("Color: "+objC1.getColor());
		System.out.println(""+rec1.Area(objC2));
		System.out.println(""+rec1.Perimeter(objC2));
		System.out.println("Color: "+objC2.getColor());
}
}